package cn.fy.repository;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

import cn.fy.model.Customer;

@Repository
public interface CustomerRepository extends ElasticsearchRepository<Customer, String> {
	public Page<Customer> findByAddress(String address, Pageable pageable);

	public Customer findByUserName(String userName);

	public int deleteByUserName(String userName);

}
